//
//  NewsBigButton.m
//  zjsapp
//
//  Created by jlwb-lxc on 2018/8/8.
//  Copyright © 2018年 njmd. All rights reserved.
//

#import "NewsBigButton.h"

@implementation NewsBigButton


- (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent*)event {
    
    CGRect bounds = self.bounds; //若原热区小于44x44，则放大热区，否则保持原大小不变
    CGFloat widthDelta = MAX(44  - bounds.size.width, 0);
    CGFloat heightDelta = MAX(44 - bounds.size.height, 0);
    bounds = CGRectInset(bounds, - widthDelta/2, - heightDelta/2);
    return CGRectContainsPoint(bounds, point);
}

@end
